//
//  MainMenuDataModel.h
//  HondaPro_2
//
//  Created by Eric on 13-5-29.
//  Copyright (c) 2013年 glendale. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface MainMenuDataModel : NSObject

/*MainMenu attributes*/
@property (strong,nonatomic) NSArray *precontractList;//“预约”列表
@property (strong,nonatomic) NSArray *maintenanceList;//“维修中”列表
@property (strong,nonatomic) NSArray *settlementList;//“待结算”列表
/*end of MainMenu attributes*/

/*CarClendarQuery attributes*/
@property (strong,nonatomic) NSString *jobSheetId;//作业单号
@property (strong,nonatomic) NSString *currentVinSel;//当前的车架号
@property (strong,nonatomic) NSString *currentRepairState;//当前维修状态
@property (strong,nonatomic) NSString *crrearage;//本次欠款
@property (strong,nonatomic) NSDictionary *carReception;//车辆接待
@property (strong,nonatomic) NSDictionary *repairEstimate;//修理估价
@property (strong,nonatomic) NSDictionary *repairItemList;//维修项目
@property (strong,nonatomic) NSDictionary *usePart;//使用零件
@property (strong,nonatomic) NSDictionary *otherChargeList;//其他费用列表
@property (strong,nonatomic) NSDictionary *processingPlant;//工厂处理
@property (strong,nonatomic) NSDictionary *settlementCount;//结算统计
@property (strong,nonatomic) NSDictionary *repairCarCheck;//车辆检查
/*end of CarClendarQuery attributes*/

/*WaringInformation attributes*/
@property (strong,nonatomic) NSArray *waringInformation;
@property (strong,nonatomic) NSArray *warrantyHistory;
@property (strong,nonatomic) NSArray *inspectionRecord;
@property (strong,nonatomic) NSString *vinStr;
@property (strong,nonatomic) NSString *saleDateStr;
@property (strong,nonatomic) NSString *customerNameStr;
@property (strong,nonatomic) NSString *expirationDateStr;
/*end of WaringInformation attributes*/

/*SearchPartsInventory attributes*/
@property (strong,nonatomic) NSArray *arrForSearchPartsInventory;
@property (strong,nonatomic) NSString *strPartCodeForSearchPartsInventory;
@property (strong,nonatomic) NSString *strPartChinaNameForSearchPartsInventory;
@property (strong,nonatomic) NSString *strPartEnglishNameForSearchPartsInventory;
@property (strong,nonatomic) NSString *strCarTypeId;
@property (strong,nonatomic) NSString *strInStock;
/*end of SearchPartsInventory attributes*/



/*---作业单制作数据---*/

@property (strong,nonatomic) NSMutableDictionary *dicJobSheetMsg;//存储作业单制作所有信息的字典

/*baseMssage 基本信息*/
@property (strong,nonatomic) NSDictionary *dicBaseMessage;//基本信息字典
/*end of baseMssage 基本信息*/

/*carryGoods 物品确认*/
@property (strong,nonatomic) NSMutableArray *arrCarryGoods;
/*end of carryGoods 物品确认*/

/*functionCheck 功能确认*/
@property (strong,nonatomic) NSMutableArray *arrFunctionCheck;
/*end of functionCheck 功能确认*/

/*recodeList 录音列表*/
@property (strong,nonatomic) NSMutableArray *arrRecodeList;
/*end of recodeList 录音列表*/

/*imageList 图片列表*/
@property (strong,nonatomic) NSMutableArray *arrImageList;
/*end of imageList 图片列表*/

/*outCheck 车辆外观检查*/
@property (strong,nonatomic) NSMutableArray *arrOutCheck;
@property (strong,nonatomic) NSMutableArray *arrOutCheckDeleted;
/*end of outCheck 车辆外观检查*/

/*allocationList 多客户分配*/
@property (strong,nonatomic) NSMutableArray *arrAllocationList;
/*end of allocationList 多客户分配*/

/*chargeDetail 费用详情*/
@property (strong,nonatomic) NSMutableDictionary *dicChargeDetail;
/*end of chargeDetail 费用详情*/

/*resultsAndIndicationListAndSoOn 用户陈述*/
@property (assign,nonatomic) NSInteger nCountForResults;
@property (strong,nonatomic) NSMutableArray *arrForResults;//用户陈述数组
/** 存放维修项目列表 */
@property (strong,nonatomic) NSMutableArray *repairProjects;
@property (strong,nonatomic) NSMutableArray *deletedRepairProjects;
/** 存放零件列表 */
@property (strong,nonatomic) NSMutableArray *partList;
@property (strong,nonatomic) NSMutableArray *deletedPartList;
/** 存放附加目列表 */
@property (strong,nonatomic) NSMutableArray *attachProjects;
@property (strong,nonatomic) NSMutableArray *deletedAttachProjects;
//临时数据;
@property (assign,nonatomic) NSInteger nRowForResults;//用户陈述已选择行号,默认－1
@property (assign,nonatomic) NSInteger nRowForIndicationList;//作业指示已选择行号，默认－1
@property (assign,nonatomic) NSInteger nRowForRepairItemList;//维修项目已选择行号，默认－1
@property (assign,nonatomic) NSInteger nRowForPartList;//零件查询已选择行号，默认－1
@property (assign,nonatomic) NSInteger nRowForOtherChargeList;//其它费用已选择行号，默认－1
/*end of resultsAndIndicationListAndSoOn 用户陈述*/

/*当前选中车型*/
@property (strong,nonatomic) NSString *strCurrentCarType;
/*end of 当前选中车型*/

/*当前的车牌号、车主姓名*/
@property (strong,nonatomic) NSString *strCurrentPlateNumber;
@property (strong,nonatomic) NSString *strCurrentCustomerName;
/*end of 当前的车牌号、车主姓名*/

/*当前电话号码和默认电话号码*/
@property (strong,nonatomic) NSString *strCurrentTelNumber;
@property (strong,nonatomic) NSString *strDefaultTelNumber;
/*end of 当前电话号码和默认电话号码*/

/*当前发送短信的按钮状态*/
@property (assign,nonatomic) bool bSendMessageState;
/*end of 当前发送短信的按钮状态*/

/*症状代码、故障代码、处理代码*/
@property (strong,nonatomic) NSString *strSymptomCode;
@property (strong,nonatomic) NSString *strFaultCode;
@property (strong,nonatomic) NSString *strActionCode;
/*end of 症状代码、故障代码、处理代码*/

/*---end of 作业单制作数据---*/

/*作业单打印属性*/
@property (strong,nonatomic) NSString *jobSheetIdForPrint;
@property (strong,nonatomic) NSString *printTypeForPrint;
/*end of 作业单打印属性*/

/*服务类型*/
@property (strong,nonatomic) NSArray *arrOriginalDataForServiceType;
/*end of 服务类型*/

/*
 {"salerName":"1","salerID":"2001","tel":"","email":"","error_code":0,"error_msg":""}
 */
/*当前登陆的操作人、图片名称、录音名称*/
@property (strong,nonatomic) NSString *strCurrentSalerId;
@property (strong,nonatomic) NSDictionary *dicSalerInfo;
@property (strong,nonatomic) NSString *strCurrentPicName;
@property (strong,nonatomic) NSString *strCurrentRecordName;
/*end of 当前登陆的操作人*/

/*临时存放故障点对应的照片列表*/
@property (strong,nonatomic) NSMutableArray *arrOutCheckImageNameListTmp;
/*end of 临时存放故障点对应的照片列表*/

/*存储下单时是否显示促进列表的标识和存储促进列表的数组*/
#define MM_DIS_PROMOTE_LIST_ @"mm_disPromoteList"
/*
 如果显示的话，self.strWhetherToDisPromoteList = @"mm_disPromoteList";
 否则 self.strWhetherToDisPromoteList = @""/nil;
 */
@property (strong,nonatomic) NSString *strWhetherToDisPromoteList;
@property (strong,nonatomic) NSDictionary *dicPromoteList;
/*end of 存储下单时是否显示促进列表的标识和存储促进列表的数组*/

//singleton
+(MainMenuDataModel *)sharedMainMenuDataModel;

//实例方法
-(id)jsonParseByJsonFileStr:(NSString *)jsonFileStr;

/*just for test-for MainMenu-主菜单*/
-(void)jsonWrittenToFile;//将jsonxie入文件
-(void)jsonParseFromFile;//将json文件从文件中读出来并解析
//just for test-for MainMenu
-(void)printData;
/*end of just for test-for MainMenu-主菜单*/

/*just for test-for CarCalendarQuery－车历查询*/
-(void)jsonParseFromCarCalendarQueryFile;
-(void)printCarCalendarQueryData;
-(void)fenPeiShuJuForCarCalendarQueryByDic:(NSDictionary *)dicTmp;
/*end of just for test-for CarCalendarQuery－车历查询*/

/*just for test-for WaringInformation-三包信息查询*/
-(void)jsonParseFromWaringInformationFile:(NSDictionary *)dicTmp;
-(void)printWaringInformationData;
/*end of just for test-for WaringInformation-三包信息查询*/

/*just for test-for SearchPartsInventory-零件库查询*/
-(void)jsonParseFromSearchPartsInventory;
-(void)printSearchPartsInventoryData;
/*end of just for test-for SearchPartsInventory-零件库查询*/

/*just for test-resultsAndIndicationListAndSoOn 用户陈述*/
-(void)jsonParseFromJobSheetMake;
-(void)printJobSheetMakeData;
-(void)fenpeiDataForJobSheet;//-data from internet-
/*end of just for test-resultsAndIndicationListAndSoOn 用户陈述*/


//add 2018-07-21
/** 存放不参加服务活动的原因 */
@property (strong,nonatomic) NSMutableArray *activeReasonArr;
@end
